import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	volumeUserInfo_list: apix + '/volumeUserInfo/volumeUserInfo/list',
	volumeUserInfo_export: apix + '/volumeUserInfo/volumeUserInfo/export',
	volumeUserInfo_volumeUserInfo: apix + '/volumeUserInfo/volumeUserInfo',
	// volumeUserInfo_volumeUserInfo: apix + '/volumeUserInfo/volumeUserInfo',
	volumeUserInfo_volumeUserInfoId: apix + '/volumeUserInfo/volumeUserInfo/',
	getInfo: apix + '/volumeUserInfo/volumeUserInfo/getInfo',
	receiveCat: apix + '/volumeUserInfo/volumeUserInfo/receiveCat'
}
//查询人才优惠券关联信息列表
export function volumeUserInfoList(obj) {
	return request.get(api.volumeUserInfo_list, {
		...obj
	})
}
//人才申请停车券
export function receiveCat(obj) {
	return request.post(api.receiveCat, {
		...obj
	})
}
//导出人才优惠券关联信息列表
export function volumeUserInfoExport(obj) {
	return request.post(api.volumeUserInfo_export, {
		...obj
	})
}
//获取人才优惠券关联信息详细信息
export function volumeUserInfoId(id, userId) {
	return request.get(`${api.getInfo}?volumeId=${id}&userId=${userId}`)
}
//新增人才优惠券关联信息
export function addvolumeUserInfo(obj) {
	return request.post(api.volumeUserInfo_volumeUserInfo, {
		...obj
	})
}
//修改人才优惠券关联信息
export function putvolumeUserInfo(obj) {
	return request.put(api.volumeUserInfo_volumeUserInfo, {
		...obj
	})
}
//删除人才优惠券关联信息
export function delvolumeUserInfo(id) {
	return request.delete(api.volumeUserInfo_volumeUserInfoId + id)
}